    <%
    require '/var/www/html/aboutyou-ruby-sdk/AboutYou-SDK/lib/aboutyou-sdk.rb'

        def breadcrumb(category, path = nil)
            if path
                path = category.name + path
            else
                path = category.name
            end

            if category.parent
                path = breadcrumb(category.parent, path)
            end
            path
        end
      
        ay = AY.new(100, '3ed93394c2b5ebd12c104b177b928ad0')
        id = 507865
        productsResult = ay.fetch_products_by_ids(
        [id],
        [
              AboutYou::SDK::Criteria::ProductFields::DEFAULT_VARIANT,
            AboutYou::SDK::Criteria::ProductFields::CATEGORIES,
            AboutYou::SDK::Criteria::ProductFields::MIN_PRICE,
            AboutYou::SDK::Criteria::ProductFields::MAX_PRICE
        ])

        product = productsResult.products[id]
        category = product.category_with_longest_active_path
    %>
        <%= breadcrumb(category) %>
        <%= 'ab ' + String(product.min_price / 100) + '€' %>
        <%= 'bis ' + String(product.max_price / 100) + '€' %>
    <%
        images = product.default_variant.images
        defaultImage = images[0]

        if defaultImage
    %>
            <%= defaultImage.url %>
    <%
        end
    %>